require(['common','contact','formedit'], function () {
  // 底部详情
  var priceData = {
    list: [
      {con: '成人票',price: 89999,num: 1},
      {con: '儿童票',price: 8999,num: 1},
      {con: '长者票',price: 899,num: 1}
    ],
    serve: [
      {con: '外籍人士早餐附加费外籍人士早餐附加…',price: 8999,num: 200},
      {con: '可选服务',price: 899,num: 20},
      {con: '可选服务',price: 89,num: 2}
    ],
    discounts: [
      {con: '早点优惠',price: 2000},
      {con: '优惠信息',price: 200}
    ]
  };
  var priceDetail = _.template($("#footbar-popup").html())(priceData);
  $(".gzl-footbar__bd").footPopup({
    title: '费用明细',
    titleAlign: 'center',
    content: priceDetail
  });
  
  // 选择房间按钮事件
  $(".onsale .cabin-button").on("click",function(){
    cruiseChooseMen($(this));
  })

  $(".cabinItem .gzl-flex__item").on("click",function(){
    var title = $(this).find(".cabinName").text();
    // var price = $(this).find(".bk-list-prc strong").text();
    var content = _.template($("#room-detail").html());
    $.popup({
      title: title,
      content: content,
      btnEvent: function () {
        // window.location.href="../orderBooking/hotelOrderBooking.html";
      }
    });
  })


});